<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<%
	session.removeAttribute("baseInfo");
	request.setAttribute("accessPath", request.getContextPath());
%>
<head>

<meta charset="utf-8">
<title>杭职考勤管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- CSS -->
<link rel='stylesheet'
	href="${ requestScope['accessPath']}/fontcss/logincss/googlefont.css">
<link rel="stylesheet"
	href="${ requestScope['accessPath']}/fontcss/logincss/reset.css">
<link rel="stylesheet"
	href="${ requestScope['accessPath']}/fontcss/logincss/supersized.css">
<link rel="stylesheet"
	href="${ requestScope['accessPath']}/fontcss/logincss/style.css">

<link
	href="${ requestScope['accessPath']}/fontcss/logincss/bootstrap-switch.css"
	rel="stylesheet">

</head>
<body>
	<div class="page-container">
		<h1 style='font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;'>欢迎</h1>
		<form id="loginForm" action="${ requestScope['accessPath']}/login.html" method="post" autocomplete="on">
			<input type="text" name="username" class="username" value="${username }"
				placeholder="请输入用户名..." >
			<input type="password" name="password" value="${password }"
				class="password" placeholder="请输入口令..." autocomplete="off" >
			<div  class="bootstrap-switch-container" style="margin-top: 20px;">
				<input id="stFlg" style="" type="checkbox" data-off-color="warning" 
				<c:if test="${userType == true }"> checked="checked"</c:if> 
				data-off-text="学生"
					data-on-text="老师" >
				<input type="hidden" name="userType" id="userType" />
			</div >
			<button type="button" id="login"
				style="font: 14px/1.5 'Microsoft YaHei', arial, tahoma, \5b8b\4f53, sans-serif;">登录</button>
			<div class="error">
				<span>+</span>
			</div>

		</form>
		<div class="connect">
			<p>联系:</p>
			<p>
				<a class="facebook" href=""></a> <a class="twitter" href=""></a>
			</p>
		</div>
	</div>
	<div align="center">
		Collect from: <a href="#" target="_blank" title="杭州职业技术学院"
			style="font: 14px/1.5 'Microsoft YaHei', arial, tahoma, \5b8b\4f53, sans-serif;">
			杭州职业技术学院</a>
	</div>


	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/jquery-1.8.2.min.js"></script>
	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/supersized.3.2.7.min.js"></script>
	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/supersized-init.js"></script>
	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/scripts.js"></script>
	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/bootstrap-switch.js"></script>
	<%-- <script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/bootstrap.min.js"></script> --%>
	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/highlight.js"></script>
	<script
		src="${ requestScope['accessPath']}/fontcss/logincss/js/main.js"></script>
	<script type="text/javascript" src="${ requestScope['accessPath']}/js/common/common.js"></script> 
	
	<script type="text/javascript">
		
		<c:if test="${errMsg ne null}">
			alert("${errMsg}");
		</c:if>
		$("#login").click(function() {
			//教师学生checkBox
			var boxes = $("#stFlg")[0];
			$("#userType").val(boxes.checked);
			$("form").method = "post";
			$("form").submit();
		});
	</script>

</body>

</html>
